{extend name="base" /}

{block name="body"}

<section class="content-header">
  <h1>
    资讯分类列表
    <small>资讯 管理</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('admin/index/index')}"><i class="fa fa-dashboard"></i> Home</a></li>
    <li class="active">资讯分类列表</li>
  </ol>
</section>

<section class="content">

<!-- 列表 -->
  <div class="row">
    <div class="col-xs-12">

      <div class="box">

        <div class="box-header">
        {if condition="show_auth('admin/AdminUser/add')"}
          <a href="javascript:;" data-url="{:url('add')}" proc-url="{:url('addProc')}" title="添加资讯分类" class="btn btn-success btn-social-icon add-btn"><i class="fa fa-plus-square"></i></a>
        {/if}

          <a href="javascript:location=location" title="刷新" class="btn btn-default btn-social-icon"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></a>
          <b style="color:#444">&nbsp;&nbsp;&nbsp;分类总数：</b>
        </div>

        <div class="box-body table-responsive no-padding">
          <table class="table table-hover">
            <tr>
              <th width="4%">ID</th>
              <th>分类名称</th>
              <th>操作</th>
            </tr>
            {volist name="info" id="v"}
            <tr {$v.level ? "" : "class='info'"}>
              <td>{$v.id}</td>
              <td>{$v.level ? "|" : ""} {:str_repeat("——", $v.level)} {$v.cate_name}</td>
              <td>

                <!-- <a href="javascript:;" title="{$v.cate_name}：属性列表" data-id="{$v.id}" data-url="{:url('admin/CateAttr/index')}" class="btn btn-xs btn-danger btn-social-icon set-attr-btn"><i class="fa fa-tags"></i></a> -->

                {if condition="show_auth('admin/AdminUser/edit')"}
                  <a href="javascript:;" title="编辑" data-id="{$v.id}" data-url="{:url('edit')}" proc-url="{:url('editProc')}" class="btn btn-xs btn-info btn-social-icon edit-btn"><i class="fa fa-pencil"></i></a>
                {/if}

                {if condition="show_auth('admin/AdminUser/delete')"}
                  <a href="javascript:;" title="删除" data-id="{$v.id}" data-url="{:url('delete')}" class="btn btn-xs btn-danger btn-social-icon delete-btn"><i class="fa fa-trash-o"></i></a>
                {/if}
              </td>
            </tr>
            {/volist}
          </table>
        </div>


      </div>

    </div>
  </div>


</section>

{/block}

{block name="script"}
<script type="text/javascript" src="__AJS__/article_cate/index.js"></script>
{/block}